package me.zingon.doc.vo;

import me.zingon.doc.model.Catalog;

import java.util.List;

/**
 * Created by zhidi on 2018-6-1.
 */
public class CatalogVO {

    Integer id;

    String name;

    String icon;

    String url;

    List<CatalogVO> children;

    public CatalogVO() {
    }

    public CatalogVO(Catalog catalog) {
        this.id = catalog.getId();
        this.name = catalog.getName();
        this.icon = catalog.getIcon();
        this.url = catalog.getUrl();
    }

    public Integer getId() {
        return id;
    }

    public CatalogVO setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public CatalogVO setName(String name) {
        this.name = name;
        return this;
    }

    public String getIcon() {
        return icon;
    }

    public CatalogVO setIcon(String icon) {
        this.icon = icon;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public CatalogVO setUrl(String url) {
        this.url = url;
        return this;
    }

    public List<CatalogVO> getChildren() {
        return children;
    }

    public CatalogVO setChildren(List<CatalogVO> children) {
        this.children = children;
        return this;
    }
}
